#include "mainwindow.h"
#include "ui_mainwindow.h"
#include"sign.h"
#include"menu.h"
#include <QPixmap>


MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::paintEvent(QPaintEvent *){
    QPainter painter(this);
    QPixmap pix;
    pix.load(":/new/prefix1/bkt.png");
    painter.drawPixmap(0,0,this->width(),this->height(),pix);
}

void MainWindow::on_visitorButton_clicked()
{

    Menu *m =new Menu();
    m->show();
}
void MainWindow::on_managerButton_clicked()
{
    si=new sign;
    si->show();
}